package org.at;

import java.math.BigDecimal;

// 水果类
public abstract class Fruit {
    // 水果名字
    protected String name;
    // 水果未折扣的价格
    protected BigDecimal price;
    // 折扣
    protected BigDecimal discountRate;
    // 水果描述
    public abstract String getDescription();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }
}
